			<div class="listMain">

				<!--分类-->
			<div class="nav-table">
					   <div class="long-title"><span class="all-goods">全部分类</span></div>
					   	<!-- 横向导航 start -->
						<?php $this->load->view('public/horiz-menu.html');?>
						<!-- 横向导航 end -->
			</div>
				<ol class="am-breadcrumb am-breadcrumb-slash">
					<li><a href="#">首页</a></li>
					<li><a href="#">分类</a></li>
					<li class="am-active">内容</li>
				</ol>
				<script type="text/javascript">
					$(function() {});
					$(window).load(function() {
						$('.flexslider').flexslider({
							animation: "slide",
							start: function(slider) {
								$('body').removeClass('loading');
							}
						});
					});
				</script>
				<div class="scoll">
					<section class="slider">
						<div class="flexslider">
							<ul class="slides">
								<li>
									<img src="images/01.jpg" title="pic" />
								</li>
								<li>
									<img src="images/02.jpg" />
								</li>
								<li>
									<img src="images/03.jpg" />
								</li>
							</ul>
						</div>
					</section>
				</div>

				<!--放大镜-->

				<div class="item-inform">
					<div class="clearfixLeft" id="clearcontent">

						<div class="box">
							<script type="text/javascript">
								$(document).ready(function() {
									$(".jqzoom").imagezoom();
									$("#thumblist li a").click(function() {
										$(this).parents("li").addClass("tb-selected").siblings().removeClass("tb-selected");
										$(".jqzoom").attr('src', $(this).find("img").attr("mid"));
										$(".jqzoom").attr('rel', $(this).find("img").attr("big"));
									});
								});
							</script>

							<?php 
								
								$fgood_imgfile = pathinfo($goods_img[0]);
								$ffilename =$fgood_imgfile["filename"].'_thumb'.'.';
								$fimg_name =$ffilename.$fgood_imgfile["extension"];
							



						?>


							<div class="tb-booth tb-pic tb-s310">
								<a href="<?php echo base_url(),'public/uploads/goods_img/',$goods_img[0];?>"><img src="<?php echo base_url(),'public/uploads/goods_mid_img/',$fimg_name;?>" alt="<?php echo $goods['goods_name'];?>" rel="<?php echo base_url(),'public/uploads/goods_img/',$goods_img[0];?>" class="jqzoom" /></a>
							</div>
							<ul class="tb-thumb" id="thumblist">

								<?php foreach ($goods_img as $k=>$v):?>

								<?php

									$good_imgfile = pathinfo($v);
									$filename =$good_imgfile["filename"].'_thumb'.'.';
									$img_name =$filename.$good_imgfile["extension"];

								?>
								<li class="tb-selected">
									<div class="tb-pic tb-s40">
										<a href="#"><img src="<?php echo base_url(),'public/uploads/goods_small_img/',$img_name;?>" mid="<?php echo base_url(),'public/uploads/goods_mid_img/',$img_name;?>" big="<?php echo base_url(),'public/uploads/goods_img/',$v;?>"></a>
									</div>
								</li>
								<?php endforeach;?> 
								
							</ul>
						</div>

						<div class="clear"></div>
					</div>

					<div class="clearfixRight">

						<!--规格属性-->
						<!--名称-->
						<div class="tb-detail-hd">
							<h1>	
				 <?php echo $goods['goods_name'];?>
	          </h1>
						</div>
						<div class="tb-detail-list">
							<!--价格-->
							<div class="tb-detail-price">
								<li class="price iteminfo_price">
								<?php if($goods['is_promote']==1):?>
									<dt>促销价</dt>
									<dd><em>¥</em><b class="sys_item_price"><?php echo $goods['promote_price'];?></b>  </dd>                                 
								</li>
								<li class="price iteminfo_mktprice">
									<dt>原价</dt>
									<dd><em>¥</em><b class="sys_item_mktprice"><?php echo $goods['shop_price'];?></b></dd>									
								</li>
								<?php else:?>
								<li class="price iteminfo_mktprice">
									<dt>价格</dt>
									<dd><em>¥</em><b class="sys_item_price"><?php echo $goods['shop_price'];?></b></dd>									
								</li>
								<?php endif;?>
								<div class="clear"></div>
							</div>

							<!--地址-->
							<dl class="iteminfo_parameter freight">
								<dt>配送至</dt>
								<div class="iteminfo_freprice">
									<div class="am-form-content address">
										<select data-am-selected>
										<?php foreach ($provices as $pk=>$pv):?>
											<option value="<?php echo $pv['name'];?>"><?php echo $pv['name'];?></option>
										<?php endforeach;?>
											
										</select>
										<select data-am-selected>
											<?php foreach ($citys as $ck=>$cv):?>
												<option value="<?php echo $cv['name'];?>"><?php echo $cv['name'];?></option>
											<?php endforeach;?>
										</select>
										<select data-am-selected>
											<?php foreach ($countys as $cok=>$cov):?>
												<option value="<?php echo $cov['name'];?>"><?php echo $cov['name'];?></option>
											<?php endforeach;?>
										</select>
									</div>
									<div class="pay-logis">
										快递<b class="sys_item_freprice">10</b>元
									</div>
								</div>
							</dl>
							<div class="clear"></div>

							<!--销量-->
							<ul class="tm-ind-panel">
								<li class="tm-ind-item tm-ind-sellCount canClick">
									<div class="tm-indcon"><span class="tm-label">月销量</span><span class="tm-count">1015</span></div>
								</li>
								<li class="tm-ind-item tm-ind-sumCount canClick">
									<div class="tm-indcon"><span class="tm-label">累计销量</span><span class="tm-count">6015</span></div>
								</li>
								<li class="tm-ind-item tm-ind-reviewCount canClick tm-line3">
									<div class="tm-indcon"><span class="tm-label">累计评价</span><span class="tm-count">640</span></div>
								</li>
							</ul>
							<div class="clear"></div>

							<!--各种规格-->
							<dl class="iteminfo_parameter sys_item_specpara">
								<dt class="theme-login"><div class="cart-title">可选规格<span class="am-icon-angle-right"></span></div></dt>
								<dd>
									<!--操作页面-->

									<div class="theme-popover-mask"></div>

									<div class="theme-popover">
										<div class="theme-span"></div>
										<div class="theme-poptit">
											<a href="javascript:;" title="关闭" class="close">×</a>
										</div>
										<div class="theme-popbod dform">
											<form class="theme-signin" name="loginform" action="" method="post">

												<div class="theme-signin-left">
												
												
													<?php foreach($attributes as $k=>$v):?>
													<div class="theme-options">
														<div class="cart-title"><?php echo $v['attr_name'];?></div>
														
														<?php 
															$attr_values = explode(PHP_EOL, trim($v['attr_value']));
														?>
														
														<ul>
															<?php foreach($attr_values as $kk=>$vv):?>
															<li class="sku-line  <?php if($kk==0):?>selected<?php endif;?>"><?php echo $vv;?><i></i></li>
															<?php endforeach;?>
	
														</ul>
													</div>
													<?php endforeach;?>
													
											
													
													<div class="theme-options">
														<div class="cart-title number">数量</div>
														<dd>
															<input id="min" class="am-btn am-btn-default" name="" type="button" value="-" />
															<input id="text_box" name="" type="text" value="1" style="width:30px;" />
															<input id="add" class="am-btn am-btn-default" name="" type="button" value="+" />
															<span id="Stock" class="tb-hidden">库存<span class="stock"><?php echo $goods['goods_number'];?></span>件</span>
														</dd>

													</div>
													
													
													
													<div class="clear"></div>

													<div class="btn-op">
														<div class="btn am-btn am-btn-warning">确认</div>
														<div class="btn close am-btn am-btn-warning">取消</div>
													</div>
												</div>
												<div class="theme-signin-right">
													<div class="img-info">
														<img src="images/songzi.jpg" />
													</div>
													<div class="text-info">
														<span class="J_Price price-now">¥39.00</span>
														<span id="Stock" class="tb-hidden">库存<span class="stock">1000</span>件</span>
													</div>
												</div>

											</form>
										</div>
									</div>

								</dd>
							</dl>
							<div class="clear"></div>
							<!--活动	-->
							<!--<div class="shopPromotion gold">
								<div class="hot">
									<dt class="tb-metatit">店铺优惠</dt>
									<div class="gold-list">
										<p>购物满2件打8折，满3件7折<span>点击领券<i class="am-icon-sort-down"></i></span></p>
									</div>
								</div>
								<div class="clear"></div>
								<div class="coupon">
									<dt class="tb-metatit">优惠券</dt>
									<div class="gold-list">
										<ul>
											<li>125减5</li>
											<li>198减10</li>
											<li>298减20</li>
										</ul>
									</div>
								</div>
							</div>-->
						</div>

						<div class="pay">
							<div class="pay-opt">
							<a href="home.html"><span class="am-icon-home am-icon-fw">首页</span></a>
							<a><span class="am-icon-heart am-icon-fw">收藏</span></a>
							
							</div>
							<li>
								<div class="clearfix tb-btn tb-btn-buy theme-login">
									<a id="LikBuy" title="点此按钮到下一步确认购买信息" href="#">立即购买</a>
								</div>
							</li>
							<li>
								<div class="clearfix tb-btn tb-btn-basket theme-login">
									<a id="LikBasket" data-id="<?php echo $goods['goods_id'];?>" data-name="<?php echo $goods['goods_name'];?>" data-price="<?php echo $goods['shop_price'];?>"  title="加入购物车" href="javascript:void(0);"><i></i>加入购物车</a>
								</div>
							</li>
						</div>

					</div>

					<div class="clear"></div>

				</div>

		
				<div class="clear"></div>
				
							
				<!-- introduce-->

				<div class="introduce">
					<div class="browse">
					    <div class="mc"> 
						     <ul>					    
						     	<div class="mt">            
						            <h2>看了又看</h2>        
					            </div>
						     	
								<?php foreach($hots as $k=>$v):?>
								<?php
										$imgs = explode(',',$v['goods_img']);
										$good_imgfile = pathinfo($imgs[0]);
										$filename =$good_imgfile["filename"].'_thumb'.'.';
										$img_name =$filename.$good_imgfile["extension"];
																
								?>
							      <li class="first">
							      	<div class="p-img">                    
							      		<a  href="<?php echo base_url(),'goods/index?id=',$v['goods_id'];?>"> <img class="" src="<?php echo base_url(),'public/uploads/goods_thumb/',$img_name;?>"> </a>               
							      	</div>
							      	<div class="p-name"><a href="#">
							      		<?php if(mb_strlen($v['goods_name']) >20):?><?php echo mb_substr($v['goods_name'],0,20),'......';?><?php else:?><?php echo $v['goods_name'];?><?php endif;?>
							      	</a>
							      	</div>
							      	<div class="p-price"><strong><?php echo $v['shop_price'];?></strong></div>
							      </li>
								  <?php endforeach;?>
							    						      
					      
						     </ul>					
					    </div>
					</div>
					<div class="introduceMain">
						<div class="am-tabs" data-am-tabs>
							<ul class="am-avg-sm-3 am-tabs-nav am-nav am-nav-tabs">
								<li class="am-active">
									<a href="#">

										<span class="index-needs-dt-txt">宝贝详情</span></a>

								</li>

								<!--<li>
									<a href="#">

										<span class="index-needs-dt-txt">全部评价</span></a>

								</li>-->

								<li>
									<a href="#">

										<span class="index-needs-dt-txt">猜你喜欢</span></a>
								</li>
							</ul>

							<div class="am-tabs-bd">

								<div class="am-tab-panel am-fade am-in am-active">
									<div class="J_Brand">

										<div class="attr-list-hd tm-clear">
											<h4>产品参数：</h4></div>
										<div class="clear"></div>
										<ul id="J_AttrUL">
											<?php foreach($attrs as $ak=>$av):?>
											<li title=""><?php echo $av['attr_name'];?>:&nbsp;<?php echo $av['attr_value'];?></li>
											<?php endforeach;?>
										</ul>
										<div class="clear"></div>
									</div>

									<div class="details">
										<div class="attr-list-hd after-market-hd">
											<h4>商品细节</h4>
										</div>
										<div class="twlistNews">
											<?php echo $goods['goods_desc'];?>
										</div>
									</div>
									<div class="clear"></div>

								</div>

								
								
								

								<div class="am-tab-panel am-fade">
									<div class="like">
										<ul class="am-avg-sm-2 am-avg-md-3 am-avg-lg-4 boxes">
										
										<?php foreach($hits as $k=>$v):?>
											<?php
													$imgs = explode(',',$v['goods_img']);
													$good_imgfile = pathinfo($imgs[0]);
													$filename =$good_imgfile["filename"].'_thumb'.'.';
													$img_name =$filename.$good_imgfile["extension"];
																			
											?>
											<li>
												<div class="i-pic limit">
													<img src="<?php echo base_url(),'public/uploads/goods_thumb/',$img_name;?>" />
													<p><?php if(mb_strlen($v['goods_name']) >13):?><?php echo mb_substr($v['goods_name'],0,13),'......';?><?php else:?><?php echo $v['goods_name'];?><?php endif;?></p>
													<p class="price fl">
														<b>¥</b>
														<strong><?php echo $v['shop_price'];?></strong>
													</p>
												</div>
											</li>
										<?php endforeach;?>
											
										</ul>
									</div>
									<div class="clear"></div>

									<!--分页 -->
									<!--<ul class="am-pagination am-pagination-right">
										<li class="am-disabled"><a href="#">&laquo;</a></li>
										<li class="am-active"><a href="#">1</a></li>
										<li><a href="#">2</a></li>
										<li><a href="#">3</a></li>
										<li><a href="#">4</a></li>
										<li><a href="#">5</a></li>
										<li><a href="#">&raquo;</a></li>
									</ul>-->
									<div class="clear"></div>

								</div>

							</div>

						</div>

						<div class="clear"></div>

						<!-- footer start -->
						<?php $this->load->view('public/footer.html');?>
						<!-- footer end -->
					</div>

				</div>
			</div>

			<!-- 右边侧边栏 start -->
			<?php $this->load->view('public/right-menu.html');?>
			<!-- 右边侧边栏 end -->

			<script type="text/javascript" src="<?php echo base_url(),FRONT_DIR?>js/quick_links.js"></script>

			<script type="text/javascript" src="<?php echo base_url(),FRONT_DIR?>js/amazeui.min.js"></script>
			<script type="text/javascript" src="<?php echo base_url(),FRONT_DIR?>js/jquery.imagezoom.min.js"></script>
			<script type="text/javascript" src="<?php echo base_url(),FRONT_DIR?>js/jquery.flexslider.js"></script>
			<script type="text/javascript" src="<?php echo base_url(),FRONT_DIR?>js/list.js"></script>
			
			<script type="text/javascript">
				$(function(){
					//加入购物车
					$("#LikBasket").click(function(){
							$.ajax({
							  url: "<?php echo base_url(),'cart/join';?>",
							  type: "post",
							  'data':{
									'goods_id':$(this).attr('data-id'),
									'goods_name':$(this).attr('data-name'),
									'goods_nums':$("input#text_box").val(),
									'shop_price':$(this).attr('data-price')
									
									
								},
							beforeSend : function (jqXHR, settings) {
									 
								},
							  success: function(response, status, xhr){
									var info = $.parseJSON(response);
									if(info.stat==1){
										alert(info.message);
										location.href=info.url;
									}else{
										//alert(info.message);
										location.href=info.url;
									}
							  
							  }
						});
						
					});
				});
			
			</script>

	</body>

</html>